class c4_Sequence

A sequence is an abstract base class for views on ranges of records.

Public:

c4_Sequence ();
Abstract constructor.
virtual int Compare (int, c4_Cursor) const;
Compares the specified row with another one.
void SetAt (int, c4_Cursor);
Replaces the contents of a specified row.
virtual int RemapIndex (int, const c4_Sequence*) const;
Remaps the index to an underlying view.
c4_String Describe () const;
Returns a descriptions of the current data structure.
void IncRef ();
Increments the reference count of this sequence.
void DecRef ();
Decrements the reference count, delete objects when last.
int NumRefs () const;
Returns the current number of references to this sequence.
virtual int Size () const;
Returns the current number of rows.
void Resize (int, int =-1);
Changes number of rows, either by inserting or removing them.
virtual void InsertAt (int, c4_Cursor, int =1);
Inserts one or more rows into this sequence.
virtual void RemoveAt (int, int =1);
Removes one or more rows from this sequence.
virtual void Move (int, int);
Move a row to another position.
int NthProperty (int) const;
Returns the id of the N-th property.
int PropIndex (int, bool =false);
Finds the index of a property, or creates a new entry.
virtual int NumHandlers () const;
Returns the number of data handlers in this sequence.
virtual c4_Handler& NthHandler (int) const;
Returns a reference to the N-th handler in this sequence.
virtual const c4_Sequence* HandlerContext (int) const;
Returns the context of the N-th handler in this sequence.
virtual int AddHandler (c4_Property&, c4_Handler*);
Adds the specified data handler to this sequence.
virtual bool Get (int, int, c4_Bytes&);
Retrieves one data item from this sequence.
virtual void Set (int, int, const c4_Bytes&);
Stores a data item into this sequence.
void Attach (c4_Sequence* child_);
Registers a sequence to receive change notifications.
void Detach (c4_Sequence* child_);
Unregisters a sequence which received change notifications.
c4_Dependencies* GetDependencies () const;
Returns a pointer to the dependencies, or null.
virtual c4_Notifier* PreChange (c4_Notifier& nf_);
Called just before a change is made to the sequence.
virtual void PostChange (c4_Notifier& nf_);
Called after changes have been made to the sequence.
virtual void SetSize (int size_);

Protected:

int _lastPropId;
see c4_HandlerSeq::Reset()

virtual ~c4_Sequence ();



#include "k4viewx.h"   // Jun 8, 1997